<!DOCTYPE html>
<html lang="en">
  <head>
  	<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
	<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> 
	<META HTTP-EQUIV="Expires" CONTENT="0">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

	<meta name="renderer" content="webkit">
	
    <title>oa</title>

    <!-- Bootstrap -->
    
    <link href="../css/bootstrap/bootstrap.min.css" rel="stylesheet">
    <link href="../css/bootstrap/toastr.css" rel="stylesheet">
    
    <link href="../css/fullcalendar/fullcalendar.min.css" rel="stylesheet">
    <link href="../css/bootstrap/jquery.dataTables.css" rel="stylesheet">
    
    <link href="../css/bootstrap/jquery.contextMenu.min.css" rel="stylesheet">
    
    <link href="../css/bootstrap/jquery-ui.css" rel="stylesheet">
    <link href="../css/bootstrap/dataTables.jqueryui.min.css" rel="stylesheet">
    <!--<link href="css/bootstrap/popHover/bootstrap-theme.css" rel="stylesheet">-->
	<link href="../css/bootstrap/customOA.css" rel="stylesheet">
	<link href="../css/bootstrap/form-border.css" rel="stylesheet">	
	
	
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <script src="../js/require.js"></script>
    <!--[if lt IE 9]>
    	 <script>
			require(['../js/appConf'], function() {
			    require(['jquery','html5shiv','respond'], function() {
					
			    });
			});
		</script>      
    <![endif]-->
  </head>

  <body  style="background:#e9eaeb">
  <div class="navbar">
		<nav class="navbar-default navbar-fixed-top" role="navigation">
			
			<nav class="navbar-blue" role="navigation">
				<div class="container">
				<div class="navbar-header">
					 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> 
						 <span class="sr-only">Toggle navigation</span>
						 <span class="icon-bar"></span>
						 <span class="icon-bar"></span>
						 <span class="icon-bar"></span>
					 </button> 
					 <a class="navbar-brand" href="#" class="relative-file"><span class="custom-name"></span> 协同办公系统(OA)</a>
				</div>
				<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
					
						<ul class="nav navbar-nav">
							
						</ul>
						
						<ul class="nav navbar-nav navbar-right">
							<li class="dropdown">
								<a href="#" class="dropdown-toggle" data-toggle="dropdown">友情链接<strong class="caret"></strong></a>
								<ul class="dropdown-menu">
									
									<li>
										<a class="relate-link" href="javascript:void(0);" site-id="honest">廉洁风险防控系统</a>
									</li>
									<li>
										<a class="relate-link" href="javascript:void(0);" site-id="nurse">护理管理卫生信息系统</a>
									</li>
									<li>
										<a class="relate-link" href="javascript:void(0);" site-id="study">湖南省国家工作人员学法平台</a>
									</li>
									<li>
										<a class="relate-link" href="javascript:void(0);" site-id="examination">湖南省国家工作人员考试平台</a>
									</li>
									<li>
										<a class="relate-link" href="javascript:void(0);" site-id="jixiao">绩效管理系统</a>
									</li>
					
									<li class="divider">
									</li>
									<li>
										<a class="relate-link" href="javascript:void(0);" site-id="quit">退出登录</a>
									</li>
								</ul>
							</li>
						</ul>
					
				</div>
				</div>
			</nav>
			
			<div class="navbar-header">
				 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-2"> <span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button> <a class="navbar-brand" href="#"></a>
			</div>
			<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-2">
				<div class="navbar-light-stage">
						<a class="nav-stage active" page-id="pageMain">通知公告<span class="badge badge-doc-notify"></span></a>
	    				<a class="nav-stage" page-id="docManage">文档资料</a>
	    				<a class="nav-stage" page-id="calendar">日程安排</a>
	    				<a class="nav-stage" page-id="meeting">会议安排</a>
	    				<a class="nav-stage" page-id="issue">审批事项<span class="badge badge-issue-notify"></span></a>
	    				<a class="nav-stage" page-id="issueList">查询统计<span class="badge badge-issueView-notify"></span></a>
	    				<!--<a class="nav-stage" page-id="file">收发文件<span class="badge badge-file-notify"></span></a>-->
	    				<a class="nav-stage" page-id="innerMail">内部邮件<span class="badge badge-mail-notify"></span></a>
	    				<a class="nav-stage" page-id="addressList">通讯录</a>
	    				<!--<a class="nav-stage" page-id="democracy">民主生活会</a>-->
				</div>
			</div>
		</nav>
  </div>
 <br style="height:10px;"></br>
<div class="container" id="main-container" style="background:#fff;min-height:500px;">
</div>

 <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
 
 <!-- window config -->
  <div id="bs-doc-detail-win"></div>
  
   
 </body>
<script src="../js/require.js"></script>
<script>
require(['../js/appConf','../js/bsConfig','../js/bsPlugins', '../js/duties','../js/oa','../js/document','../js/bsDocument'], function() {
	
	//设置默认站点
	var _site = 'honest';
	
	
	//container
	var _c ;
	
	var funcDef = {
		
		openPage:function(page){
			//alert('open page: ' + page);
			var _page = 'pageMain';
			if(page){
				_page = page;
			}
			
			var _url = '/'+_site+'/getPage.action?code='+_page;
			
			_c = !_c?$('#main-container'):_c;
			
			_c.empty();
			_c.load(_url);
		},
		//导航点击事件
		navClick:function(e){
		
			$('#bs-example-navbar-collapse-2 a').removeClass('active');
    		
			var _el = e.currentTarget;
			
			var page = $(_el).attr('page-id');
			if(page){
				funcDef.openPage(page);
				$(_el).addClass('active');
			}
		}
		,
		linkClick:function(evt){
			
			var logoutUrl='/biz/logout.action';
			
			var _text = $(evt.currentTarget).attr('site-id');
			var _logoutUrl = '/'+_site+logoutUrl
			if((_text!=null)&&($.trim(_text).length>0)){
				switch(_text){
					case 'quit':
						$.ajax( {
							url : _logoutUrl,					
							success :function(data){
								if(data && data.msg){
									window.location.href='/'+data.msg ;
								}else{
									window.location.href='/'+_site;
								}
							}					
						});						
						break;
					case 'nurse':
						window.location.href='http://192.168.1.211:88/platform/index.html';
						break;
					case 'study':
						window.location.href='http://118.178.35.205/login.html';
						break;
					case 'examination':
						window.location.href='http://118.178.35.153/';
						break;
					case 'jixiao':
						window.location.href='http://192.168.1.152:8888/login';
						break;
					default:
						window.location.href='/'+_text;
						break;
				}
				
			}
		}
	
	}
	
	//定义导航事件
	var _btn = $(' .nav-stage')
	
	if(_btn.length>0){
		_btn.unbind('click');
		_btn.bind('click',funcDef.navClick);
	}
	
	//定义友情链接事件
	var _link = $('.relate-link')
	if(_link.length>0){
		_link.unbind('click');
		_link.bind('click',funcDef.linkClick);
	}
	
	require(['init','commonServ','domReady!'], function(module,commonServ,doc) {
		
		//获取页面站点
		var _sitePath = window.location.pathname;
		
		var _sp = _sitePath.split('/');
		
		
		if(_sp.length>=2){
			var _site = _sp[1];
			if(_site && _site.indexOf('get')<0){
				
				_site = _sp[1];
			}
		}
		
		$(' .custom-name').text(commonServ.getHostpital());
		funcDef.openPage();
		
    });	
	
})

</script>
 
 </html>